package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
//    @Insert("INSERT INTO dish_flavor ( dish_id, name, value)" +
//            " VALUES ( #{dishId}, #{name}, #{value});")
//    void insert(DishFlavor flavor);
    void insert(List<DishFlavor> flavors);

    void deleteByDishId(List<Long> ids);

    List<DishFlavor> selectByDishId(Long id);
}
